#include "HFM_Node.h"

HFM_Node::HFM_Node():m_iChar('#'),
	m_dWeight(0.0),m_iParent(-1),
	m_iLChild(-1),m_iRChild(-1){
}

HFM_Node::~HFM_Node(){
}

char HFM_Node::getChar(){
	return m_iChar;
}

double HFM_Node::getWeight(){
	return m_dWeight;
}

int HFM_Node::getParent(){
	return m_iParent;
}

int HFM_Node::getLChild(){
	return m_iLChild;
}

int HFM_Node::getRChild(){
	return m_iRChild;
}

Status HFM_Node::setChar(char ch){
	m_iChar = ch;
	return OK;
}

Status HFM_Node::setWeight(double weight){
	this->m_dWeight = weight;
	return OK;
}

Status HFM_Node::setParent(int parent){
	this->m_iParent = parent;
	return OK;
}

Status HFM_Node::setLChild(int Lchild){
	this->m_iLChild = Lchild;
	return OK;
}

Status HFM_Node::setRChild(int Rchild){
	this->m_iRChild = Rchild;
	return OK;
}
